/*
 * FindDialog.cpp
 *
 *  Created on: 10.05.2010
 *      Author: king
 */

#include "FindDialog.h"

namespace etu {
namespace ui {

CFindDialog::CFindDialog(QWidget *parent)
     :QDialog(parent)
{
	setupUi(this);
	setMaximumWidth(minimumSizeHint().width());
	Person *person = new Person();
	m_personWidget->setPerson(person);
	m_personWidget->m_sexCB->setVisible(true);
	connect(m_findButton, SIGNAL(pressed()), this, SLOT(search()));
}

void CFindDialog::search()
{
   emit searchPerson(m_personWidget->getPerson());
}


}
}
